import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class CenterDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        home: Scaffold(
            appBar: AppBar(title: const Text('AspectRatio Sample')),
            body: Center(
              // widthFactor: 1,
              // heightFactor: 2,
              child: Container(
                height: 100,
                width: 100,
                color: Colors.blue,
              ),
            )));
  }
}
